from graph import *
windowSize(500, 500)
x, y, size = int(input("x: ")), int(input("y: ")), int(input("size: "))
if x > 500 or y > 500 or x+20*size > 500 or y+30*size > 500 or x < 0 or y < 0 or x+10*size < 0 or y+10*size < 0 :
    print("Фигура выходит за рамки")
    exit()
else:
    penColor("blue")
    brushColor("blue")
    polygon([(x, y), (x+10*size, y), (x+10*size, y+10*size), (x+20*size, y+10*size), (x+20*size, y+20*size), (x+10*size, y+20*size), (x+10*size, y+30*size), (x, y+30*size), (x, y)])
run()